Skip to content

Add auto-labeling feature with automatic generation on viewport entry#188

Draft
WCY-dt wants to merge 8 commits intomainfrom
feature/add-auto-labeling-feature
Draft

Add auto-labeling feature with automatic generation on viewport entry#188
WCY-dt wants to merge 8 commits intomainfrom
feature/add-auto-labeling-feature

Conversation

@WCY-dt
Copy link
Copy Markdown
Owner

@WCY-dt WCY-dt commented Dec 13, 2025

No description provided.

Copilot AI and others added 8 commits December 10, 2025 06:28
- Create label generation package with local NLP and AI support
- Add labels column to articles table with migration
- Add label settings to config (enabled, provider, API keys, show_in_list, max_count)
- Update Article model to include Labels field
- Add database methods for label operations
- Create label handlers for generate and update operations
- Register label API endpoints
- Update settings handlers to include label configuration

Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
- Add label-related i18n translations (EN/CN)
- Create LabelSettings component for configuration
- Update GeneralTab to include LabelSettings
- Add label fields to SettingsData type
- Add labels field to Article type
- Create useArticleLabels composable for label operations
- Create ArticleLabels component to display label badges
- Update ArticleItem to show labels when enabled
- Add label visibility toggle based on settings

Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
- Update ArticleTitle to display labels and generation button
- Add label generation functionality with loading states
- Add success/failed i18n translations
- Fix Tailwind CSS opacity class issue in ArticleLabels
- Successfully build frontend with no errors

Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
- Fix UTF-8 handling in normalizeLabel using rune slicing
- Improve error handling in getArticleContent to properly propagate errors
- Allow HTTP for localhost in HTTPS validation for development
- Add documentation for JSON label matching limitations
- Fix Vue prop mutation by removing direct prop modification
- All builds pass successfully

Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
- Add ClearAllLabels database method and /api/label/clear endpoint
- Rewrite useArticleLabels composable with IntersectionObserver pattern
- Update ArticleList to integrate label auto-generation on viewport entry
- Add label-settings-changed event handling in useSettingsAutoSave
- Remove manual generate button from ArticleTitle, labels auto-generate now
- Labels clear and regenerate when settings change (like translation)
- Labels display automatically in both list and detail views

Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
@WCY-dt WCY-dt self-assigned this Dec 13, 2025
@WCY-dt WCY-dt added the ✨enhancement New feature or request label Dec 13, 2025
@WCY-dt WCY-dt changed the title feature: add auto labeling feature Add auto-labeling feature with automatic generation on viewport entry Dec 13, 2025
@WCY-dt WCY-dt linked an issue Dec 13, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add auto-labeling feature with automatic generation on viewport entry

2 participants